/**
 * TrustedComapnyState entity. Getters & setters.
 */
package com.xoomworks.rsfr.model;

import java.io.Serializable;

/**
 * The persistent class for the TrustedCompanyStates database table.
 * @author andrea.ghisa
 */
public class TrustedCompanyState extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    private String trustedCompanyState;

    /**
     * Constructor with no fields.
     */
    public TrustedCompanyState() {
    }

    /**
     * Constructor with specified parameters.
     * @param trustedCompanyState
     *            String Represents the state of an trusted company (e.g
     *            Accepted, Pending, Rejected)
     */
    public TrustedCompanyState(final String trustedCompanyState) {
        super();
        this.trustedCompanyState = trustedCompanyState;
    }

    /**
     * Gets Represents the state of an trusted company.
     * @return trustedCompanyState Represents the state of an trusted company.
     */
    public String getTrustedCompanyState() {
        return this.trustedCompanyState;
    }

    /**
     * Sets the state of an trusted company.
     * @param trustedCompanyState
     *            String Which is used to set the trustedCompanyState.
     */
    public void setTrustedCompanyState(final String trustedCompanyState) {
        this.trustedCompanyState = trustedCompanyState;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result
                + ((trustedCompanyState == null) ? 0 : trustedCompanyState.hashCode());
        return result;
    }

    @Override
    public boolean equals(final Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        TrustedCompanyState other = (TrustedCompanyState) obj;
        if (trustedCompanyState == null) {
            if (other.trustedCompanyState != null) {
                return false;
            }
        } else if (!trustedCompanyState.equals(other.trustedCompanyState)) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "TrustedCompanyState [trustedCompanyState=" + trustedCompanyState + "]";
    }

}
